﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nature.Core.DDD
{
    public interface IRepository
    {
        void Create(IAggregationRoot t);
        void Update(IAggregationRoot t);
        void Delete(IAggregationRoot t);
        void DeleteByID<T>(string key) where T : EntityBase, IAggregationRoot;
        T Get<T>(string key) where T : EntityBase, IAggregationRoot;
    }
}
